package com.jiezuo.auth.service;

import com.alibaba.fastjson.JSONArray;
import com.jiezuo.auth.entity.User;
import com.jiezuo.common.vo.Result;

import javax.servlet.http.HttpServletRequest;

public interface LoginService {

    Result login(User user,HttpServletRequest request);

    Result logout(String user_name);

    Result authentication(String accessToken, String uri);

    Result threeLevelMenu(String user_id, String resource_type, String belongs);

    JSONArray infiniteMenu(User user, String resource_type, String is_all, String belongs);
    JSONArray initMenu(User user, String resource_type, String is_all);

//    Result signature(HttpServletRequest request, String sign) throws Exception;
}
